package rad.framework.mda.generator.template.test.resources;

public class DefaultPersistenceDD
{
  protected static String nl;
  public static synchronized DefaultPersistenceDD create(String lineSeparator)
  {
    nl = lineSeparator;
    DefaultPersistenceDD result = new DefaultPersistenceDD();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup" + NL + "hibernate.connection.release_mode=after_statement" + NL + "hibernate.transaction.flush_before_completion=true" + NL + "hibernate.transaction.auto_close_session=false" + NL + "hibernate.query.factory_class=org.hibernate.hql.ast.ASTQueryTranslatorFactory" + NL + "#hibernate.hbm2ddl.auto=create-drop" + NL + "hibernate.hbm2ddl.auto=create" + NL + "hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider" + NL + "# Clustered cache with TreeCache" + NL + "#hibernate.cache.provider_class=org.jboss.ejb3.entity.TreeCacheProviderHook" + NL + "#hibernate.treecache.mbean.object_name=jboss.cache:service=EJB3EntityTreeCache" + NL + "#hibernate.dialect=org.hibernate.dialect.HSQLDialect" + NL + "hibernate.jndi.java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory" + NL + "hibernate.jndi.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces" + NL + "hibernate.bytecode.use_reflection_optimizer=false" + NL + "show_sql=true" + NL + "hibernate.jdbc.batch_size=0";
  protected final String TEXT_2 = NL;

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    

    stringBuffer.append(TEXT_1);
    stringBuffer.append(TEXT_2);
    return stringBuffer.toString();
  }
}
